package com.manger.utils;

/**
 *@ClassName LoanFileEnum
 *@Description  TODO
 *@Author @LiuHongJun
 *@Date 2025/8/30 9:55
 *@Version 1.0
 */

public enum LoanFileEnum {

    PART_IDENTITY_CERTIFICATE("当事人身份证明"),

    INDICTMENT("起诉状"),

    CONFIRMATION_DELIVERY_ADDRESS("送达地址确认书"),

    ENTRUSTMENT_INFORMATION("委托信息"),

    EVIDENCE_MATERIALS("证据材料");

    private String name;

    LoanFileEnum(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static LoanFileEnum getLoanFileEnum(String name) {
        LoanFileEnum[] values = LoanFileEnum.values();
        for(LoanFileEnum value : values) {
            if(value.getName().equals(name)) {
                return value;
            }
        }
        return null;
    }

}
